﻿/************************************************************************/
/* FileName:        GCPointF
 * Author:          Aric.W
 * Created:         2013/9/17 16:23:42
 * Version:         A001
 * Compiler:        Visual Studio 2010
 * Description:     
 * 
 * History:
 * <Author>         <Time>              <Version>   <Desc>
 * Aric.W           2013/9/17 16:23:42  A001        create
/************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Common
{
    public struct GCPointF
    {
        /// <summary>
        /// x坐标值
        /// </summary>
        private float x;
        public float X
        {
            get { return x; }
            set { x = value; }
        }

        /// <summary>
        /// y坐标值
        /// </summary>
        private float y;
        public float Y
        {
            get { return y; }
            set { y = value; }
        }

        public static GCPointF EmptyPointF = new GCPointF(0.0f, 0.0f);

        /// <param name="x"></param>
        /// <param name="y"></param>
        public GCPointF(float x, float y)
        {
            this.x = x;
            this.y = y;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="pointF"></param>
        /// <returns></returns>
        public static PointF GetPointF(GCPointF pointF)
        {
            return new PointF(pointF.X, pointF.Y);
        }

    }//end GCPointF
}
